<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="t_bar">工作站站长</div>


<table  <c:if test="${param.isPrp==false }"> id="zh_persons"</c:if>
        <c:if test="${empty param.isPrp}"> id="zh_persons"</c:if>
        <c:if test="${param.isPrp==true }"> id="zh_persons1"</c:if>
        border="0" cellspacing="0" cellpadding="0" class="table01 t_css" >
    <thead>
    <tr>
       <%-- <th width="5%">序号</th>--%>
        <th width="10%">姓名</th>
        <th width="10%">出生年月</th>
        <th width="7%">性别</th>
        <th width="12%">从事专业</th>
        <th width="11%">职称</th>
        <th width="11%">学历</th>
        <th width="15%">所在单位</th>
        <th width="12%">所学专业</th>
        <th width="12%">项目分工</th>
    </tr>
    </thead>
    <tbody id="tab">
    <c:set value="0" var="index" scope="page" />
    <x:forEach select="$xmlData/data/zh_persons/zh_person" var="zh_person" begin="0" end="0">
        <c:choose>
            <c:when test="${index<10}">
                <c:set value="0" var="flag" scope="page" />
            </c:when>
            <c:otherwise>
                <c:set value="" var="flag" scope="page" />
            </c:otherwise>
        </c:choose>
        <tr>
            <td align="center">
                <input type="radio" name="sel_zh_persons" onclick="setSubmitPsn()" style="display:none"/>
                <div style="dispaly:none">
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]@seq_no" value="${index+1}">
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/en_name" value="<x:out select="$zh_person/basic_info/en_name" />"/>
                    <input type=hidden name= "zh_persons/zh_person[${flag}${index}]/basic_info/position" value="<x:out select="$zh_person/basic_info/position" />">
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_value" value="<x:out select="$zh_person/basic_info/ethnicity_value" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/ethnicity_name" value="<x:out select="$zh_person/basic_info/ethnicity_name" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_code" value="<x:out select="$zh_person/basic_info/subject_code" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/subject_name" value="<x:out select="$zh_person/basic_info/subject_name" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_code" value="<x:out select="$zh_person/basic_info/discipline_code" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/discipline_name" value="<x:out select="$zh_person/basic_info/discipline_name" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_value" value="<x:out select="$zh_person/basic_info/region_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/region_name" value="<x:out select="$zh_person/basic_info/region_name" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value" value="<x:out select="$zh_person/basic_info/gender_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_value" value="<x:out select="$zh_person/basic_info/card_type_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_value" value="<x:out select="$zh_person/basic_info/academician_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/academician_name" value="<x:out select="$zh_person/basic_info/academician_name" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/org_code" value="<x:out select="$zh_person/basic_info/org_code" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/tel_work" value="<x:out select="$zh_person/contact/tel_work" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/fax" value="<x:out select="$zh_person/contact/fax" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_value" value="<x:out select="$zh_person/basic_info/degree_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_name" value="<x:out select="$zh_person/basic_info/degree_name" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_code" value="<x:out select="$zh_person/basic_info/post_code" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_value" value="<x:out select="$zh_person/basic_info/degree_country_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_country_name" value="<x:out select="$zh_person/basic_info/degree_country_name" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_college" value="<x:out select="$zh_person/basic_info/degree_college" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/degree_year" value="<x:out select="$zh_person/basic_info/degree_year" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title" value="<x:out select="$zh_person/basic_info/prof_title" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_value" value="<x:out select="$zh_person/basic_info/prof_title_value" />" />
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/address" value="<x:out select="$zh_person/basic_info/address" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_value" value="<x:out select="$zh_person/basic_info/post_doctor_value" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/post_doctor_name" value="<x:out select="$zh_person/basic_info/post_doctor_name" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/age" value="<x:out select="$zh_person/basic_info/age" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_value" value="<x:out select="$zh_person/basic_info/educate_value" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_code" value="<x:out select="$zh_person/basic_info/card_code" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/basic_info/card_type_name" value="<x:out select="$zh_person/basic_info/card_type_name" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/email" value="<x:out select="$zh_person/contact/email" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/contact/mobile" value="<x:out select="$zh_person/contact/mobile" />"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/iscomember" value="0"/>
                    <input type="hidden" name="zh_persons/zh_person[${flag}${index}]/researches" label="xml"/>
                </div>
                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/zh_name"><a href="#" class="yase" onclick="psnInfoViewBykjjzfp(this,<c:if test="${param.isPrp==false }"> 'zh_persons'</c:if><c:if test="${param.isPrp==true }"> 'zh_persons1'</c:if><c:if test="${empty param.isPrp}"> 'zh_persons'</c:if>)"><x:out escapeXml="false"  select="$zh_person/basic_info/zh_name" /></a></span>

            </td>
            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/birthday"><x:out  escapeXml="false" select="$zh_person/basic_info/birthday" /></span>
            </td>
            <td align="center">
                <x:out  escapeXml="false" select="$zh_person/basic_info/gender_name" />
                    <%-- <c:set var="gender_value"><x:out escapeXml="false" select="$zh_person/basic_info/gender_value" /></c:set>
                    <c:choose>
                        <c:when test="${fn:contains(gender_value,'>M') || fn:contains(gender_value,'>F')}">
                             <c:when test="${gender_value=='F' or gender_value=='M'}">
                                     <c:if test="${fn:contains(gender_value,'>F')}">女</c:if>
                                     <c:if test="${fn:contains(gender_value,'>M')}">男</c:if>
                             </c:when>
                           <c:otherwise>
                                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/gender_value"><x:out escapeXml="false" select="$zh_person/basic_info/gender_value" /></span>
                            </c:otherwise>
                     </c:choose> --%>
            </td>
            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/contact/major_work"><x:out escapeXml="false" select="$zh_person/contact/major_work" /></span>
            </td>

            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/prof_title_name"><x:out  escapeXml="false"    select="$zh_person/basic_info/prof_title_name" /></span>
            </td>
            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/educate_name"><x:out escapeXml="false" select="$zh_person/basic_info/educate_name" /></span>
            </td>
            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/org_name"><x:out escapeXml="false" select="$zh_person/basic_info/org_name" /></span>
            </td>
            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/contact/major" ><x:out select="$zh_person/contact/major" /></span>
            </td>
            <td align="center">
                <span name="zh_persons/zh_person[${flag}${index}]/basic_info/work"><c:choose><c:when test="${index==0}">项目负责人</c:when><c:otherwise><x:out  escapeXml="false"    select="$zh_person/basic_info/work" /></c:otherwise></c:choose></span>
            </td>

        </tr>
        <c:set value="${index+1}" var="index" scope="page" />
    </x:forEach>
    </tbody>
</table>


<table class="t_css" width="100%" border="0" cellpadding="0"  id="tblresumes"  cellspacing="1">
    <col style="width: 18%"/>
    <col style="width: 20%"/>
    <col style="width: 21%"/>
    <col style="width: 20%"/>
    <col style="width: 21%"/>

    <tr class="li_1">
        <td align="center" rowspan="2">联系人</td>
        <td align="right">姓名：</td>
        <td>
          <x:out select="$xmlData/data/proposal/contact_psn_cname" />
        </td>
        <td align="right">手机：</td>
        <td colspan="2">
            <x:out select="$xmlData/data/proposal/contact_psn_mobile" />
        </td>
    </tr>
    <tr>

        <td align="right">联系电话：</td>
        <td >
           <x:out select="$xmlData/data/proposal/contact_psn_tel_work" />
        </td>

        <td align="right">E-mail：</td>
        <td >
           <x:out select="$xmlData/data/proposal/contact_psn_email" />
        </td>

    </tr>
</table>
<div class="t_bar">
    <strong>其他入驻科技特派员情况</strong>
</div>
<table  id="prj_teampersons" border="0" cellspacing="0" cellpadding="0" class="table01" label="其他入驻科技特派员情况" >
    <thead>
    <tr>
        <th align="center"  nowrap width="5%">序号</th>
        <th align="center" width="8%">姓名</th>
        <th align="center" width="16%">身份证号码</th>
        <th align="center" width="8%">职务</th>
        <th align="center" width="13%">职称</th>
        <th align="center" width="16%">派出（所在）单位</th>
        <th align="center" width="10%">入站工作起始年月</th>
        <th align="center" width="10%">科技特派员级别（省、市、县）</th>
        <th align="center" width="14%">科技特派员认定时间</th>

    </tr>
    </thead>
    <tbody id="tab1">
    <c:set value="1" var="index" scope="page"/>
    <x:forEach select="$xmlData/data/zh_persons/zh_person" var="prj_teamperson" begin="1">
        <c:choose>
            <c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
            <c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
        </c:choose>
        <tr >
            <td align="center">
                ${index}
             <%-- <x:out select="$prj_teamperson/@seq_no"/>--%>
            </td>
            <td align="center">
               <x:out select="$prj_teamperson/basic_info/zh_name"/>
            </td>
            <td align="center">
                <x:out select="$prj_teamperson/basic_info/card_code"/>
            </td>


            <td align="center">
              <x:out select="$prj_teamperson/basic_info/position"/>
            </td>


            <td align="center" >
               <x:out select="$prj_teamperson/basic_info/prof_title_name" />
            </td>

            <td align="center">
              <x:out select="$prj_teamperson/basic_info/org_name"/>
            </td>

            <td align="center">
                <x:out select="$prj_teamperson/basic_info/sb_start_date"/>
                <br>至<br>
               <x:out select="$prj_teamperson/basic_info/sb_end_date"/>

            </td>

            <td align="center">
             <x:out select="$prj_teamperson/basic_info/rank"/>
            </td>


            <td align="center">
               <x:out select="$prj_teamperson/basic_info/hold_date"/>
            </td>



        </tr>
        <c:set value="${index+1}" var="index" scope="page"/>
    </x:forEach>


    </tbody>
</table>

<%--<div class="t_bar">项目负责人简介，重点填写研发经历、主要成果、技术述评和管理能力等</div>
<table class="t_css table01" width="100%" border="0" cellpadding="0"  id="tblresume"  cellspacing="1">
    <tr style="word-break: break-all;">
        <td><x:out select="$xmlData/data/proposal/goal/brief_introduction_hidden" escapeXml="false"/></td>
    </tr>
</table>--%>
<script type="text/javascript">
    function psnInfoViewBykjjzfp(obj,tableId) {

        var subGrantCode = $("#[name='proposal/sub_grant_code']").val();
        var url;

        url = ctx+"/contract/view/dialog/psnInfoEdit_zdkjcggchyfxm_2021st?parentTab="+tableId+"&type=edit&TB_iframe=true&height=460&width=910";
        $(obj).parents("tr").find(":radio").attr("checked",true);
        if(!$("#"+tableId+" :radio:checked").length>0){
            scmWarn(irisNotes.pleaseSelectARow);
            return false;
        }
        if(url!=null&&url!=""){
            // showThickBox(url,irisNotes.viewResearcherInformation);
            var title=irisNotes.viewResearcherInformation;
            tb_show(title,url,false);
        }
    }
</script>